package com.eazyimage.lab.service;

import com.eazyimage.lab.entity.Dataset;
import com.eazyimage.lab.mapper.DatasetMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

import static com.eazyimage.lab.service.SH256Service.getSHA256Str;

@Service
public class DatasetMessService {
    @Autowired
    DatasetMapper dm;
    public List<Dataset> datasetmess(String username, String password){
        String expassword = getSHA256Str(password).toString();
        return dm.datasetmess(username,expassword);
    }
}

